package com.foreverwin.mes.lims.service;

import com.baomidou.mybatisplus.plugins.Page;
import com.baomidou.mybatisplus.service.IService;
import com.foreverwin.mes.core.base.FrontPage;
import com.foreverwin.mes.lims.model.BadEntryOfWorkshopMate;

import java.util.List;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author Mark
 * @since 2020-03-08
 */
public interface BadEntryOfWorkshopMateService extends IService<BadEntryOfWorkshopMate> {

    /**
     *  分页查询
     * @param frontPage
     * @return
     */
    Page<BadEntryOfWorkshopMate> selectPage(FrontPage<BadEntryOfWorkshopMate> frontPage, BadEntryOfWorkshopMate badEntryOfWorkshopMate);

    List<BadEntryOfWorkshopMate> selectList(BadEntryOfWorkshopMate badEntryOfWorkshopMate);

    List<BadEntryOfWorkshopMate> selectInventoryBatch(BadEntryOfWorkshopMate badEntryOfWorkshopMate);

    List<BadEntryOfWorkshopMate> selectInventoryBatchAll(BadEntryOfWorkshopMate badEntryOfWorkshopMate);

    boolean saveWithStockScrapping(BadEntryOfWorkshopMate badEntryOfWorkshopMate,Boolean isLocalTest);

    BadEntryOfWorkshopMate selectByHandle(String handle);
}